#pragma once
#include "Widget.h"
#include <vector>
#include "Rect.h"
#include "IEventListener.h"


namespace DinoUI
{
	class Window: public Widget, public Rect, public IEventListener
	{
		// container for children widgets
		std::vector<Window*> m_childWindows;
		typedef std::vector<Window*>::iterator windowIt;

	public:
		Window(Window* parent);
		Window(void);
		~Window(void);

		void SetChildWidget(Window *wnd);
		virtual void SetPosition(int x, int y);
		virtual bool HandleEvent(WidgetEvent *evt);
		virtual void Draw();
	};
}

